//
// Created by Administrator on 2020/10/16.
//

#ifndef O5G_SRC_CCORE_INCLUDE_COMMDEF_H_
#define O5G_SRC_CCORE_INCLUDE_COMMDEF_H_

#include "../../../lib/csp/include/cspApi.h"

#define O5G_RC_OK CSP_RC_OK
#define O5G_RC_ER CSP_RC_ER

#define RAN_UE_NUM_MAX     128
#define RAN_CELL_NUM_MAX   4
#define RAN_NODEB_NUM_MAX  2

#define UE_UE_INST_NUM_MAX 128

#define SOCK_BUFFER_SIZE    (16 * 1024)
#define POLL_FD_NUM_MAX  128

typedef enum
{
    APP_TYPE_CN,
    APP_TYPE_RAN,
    APP_TYPE_RAN_CU,
    APP_TYPE_RAN_DU,
    APP_TYPE_UE,
    APP_TYPE_BUTT
} E_AppType;
extern const char* gAppTypeStrTable[];

typedef enum
{
    APP_STATE_IDLE,
    APP_STATE_CONFIG,
    APP_STATE_RUNNING,
    APP_STATE_BUTT
} E_AppState;
extern const char* gAppStateStrTable[];

typedef struct MsgArcObj
{
    void *msgPtr;
    S_ObjArc arc;
    uint32_t errCode;
    S_List node;
} S_MsgArcObj;

#endif //O5G_SRC_CCORE_INCLUDE_COMMDEF_H_
